package o;

import android.graphics.drawable.Drawable;
import android.view.View;
import androidx.appcompat.widget.AppCompatImageView;
import java.lang.ref.WeakReference;

public class pf extends SkinAttr {

    static final class b extends fkz<SkinAttr, Drawable> {
        private WeakReference<AppCompatImageView> ॱ;

        public /* synthetic */ void ॱ(Object obj) {
            ˏ((Drawable) obj);
        }

        private b(AppCompatImageView appCompatImageView) {
            this.ॱ = new WeakReference(appCompatImageView);
        }

        public void ˏ(Drawable drawable) {
            AppCompatImageView appCompatImageView = (AppCompatImageView) this.ॱ.get();
            if (appCompatImageView != null) {
                appCompatImageView.setImageDrawable(drawable);
            }
        }
    }

    public pf() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof AppCompatImageView) {
            AppCompatImageView appCompatImageView = (AppCompatImageView) view;
            if ("drawable".equals(this.attrValueTypeName) || "color".equals(this.attrValueTypeName)) {
                this.ʽ = "drawable";
                fks.ˎ(view.getContext(), this, new b(appCompatImageView)).ॱ(z);
            }
        }
    }
}
